package com.lq.pojo;
/**
 * 班级对象
 * @author huaxin
 *
 */

import java.util.ArrayList;
import java.util.List;

public class Grade {
	private int id;
	private String name;
	private List<Student>users=new ArrayList<Student>();
	
	/**
	 * 添加学生
	 * @param student
	 */
	public void addStudent(Student student) {
		users.add(student);
	}
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Student> getUsers() {
		return users;
	}
	public void setUsers(List<Student> users) {
		this.users = users;
	}


	@Override
	public String toString() {
		return "Grade [id=" + id + ", name=" + name + ", users=" + users + "]";
	}

	
}
